package com.project.server.service.broadroom;

import com.project.server.domain.broadroom.TBroadroomBook;

import java.util.List;

/**
 * 会议室预约Service接口
 *
 * @author project
 * @date 2021-06-22
 */
public interface ITBroadroomBookService {

    /**
     * 查询会议室预约
     *
     * @param broadroomBookId 会议室预约ID
     * @return 会议室预约
     */
    public TBroadroomBook selectTBroadroomBookById(Long broadroomBookId);

    /**
     *根据预约人电话号码查询预约信息
     *
     *  @param tBroadroomBook 预约人电话号码
     * @return
     */
    public List<TBroadroomBook> selectTBroadroomBookByPhone(TBroadroomBook tBroadroomBook);

    /**
     * 查询会议室预约列表
     *
     * @param tBroadroomBook 会议室预约
     * @return 会议室预约集合
     */
    public List<TBroadroomBook> selectTBroadroomBookList(TBroadroomBook tBroadroomBook);

    /**
     *  根据选择时间查询会议室预约信息
     *
     * @param tBroadroomBook
     * @return 预约列表
     */
    List<TBroadroomBook> selectTBroadroomBookBybookStart(TBroadroomBook tBroadroomBook);

    /**
     * 新增会议室预约
     *
     * @param tBroadroomBook 会议室预约
     * @return 结果
     */
    public int insertTBroadroomBook(TBroadroomBook tBroadroomBook);

    /**
     * 修改会议室预约
     *
     * @param tBroadroomBook 会议室预约
     * @return 结果
     */
    public int updateTBroadroomBook(TBroadroomBook tBroadroomBook);

    /**
     * 修改预约状态
     *
     * @param tBroadroomBook 会议室预约
     * @return 结果
     */
    public int updateBookStatus(TBroadroomBook tBroadroomBook);

    /**
     * 批量删除会议室预约
     *
     * @param broadroomBookIds 需要删除的会议室预约ID
     * @return 结果
     */
    public int deleteTBroadroomBookByIds(Long[] broadroomBookIds);

    /**
     * 删除会议室预约信息
     *
     * @param broadroomBookId 会议室预约ID
     * @return 结果
     */
    public int deleteTBroadroomBookById(Long broadroomBookId);
}
